<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<title>Purchase Requisition</title>
</h:head>

    <h:body>
 
    	<ui:composition template="/WEB-INF/templates/1000_layout.xhtml">
 
<ui:define name="content"> 
 
	<h1>Purchase Requisition</h1>

	<h:form>
		<h:outputLabel for="project">Project/Department: </h:outputLabel>
		<h:selectOneMenu id="project"
			value="#{purchaseRequisitionBean.projectCode}">
			<f:selectItems value="#{purchaseRequisitionBean.projects}"
				var="project" itemValue="#{project.code}"
				itemLabel="#{project.description}" />
		</h:selectOneMenu>
		
		<h:dataTable id="table1" value="#{purchaseRequisitionBean.requests}" var="request">
			<h:column>
				<f:facet name="header">
					<h:outputText value="Item #" />
				</f:facet>
			</h:column>
			<h:column>
				<f:facet name="header">
					<h:outputText value="Description" />
				</f:facet>
			</h:column>
			<h:column>
				<f:facet name="header">
					<h:outputText value="Unit" />
				</f:facet>
			</h:column>
			<h:column>
				<f:facet name="header">
					<h:outputText value="Quantity" />
				</f:facet>
			</h:column>
			<h:column>
				<f:facet name="header">
					<h:outputText value="Action" />
				</f:facet>
			</h:column>
		</h:dataTable>
		
		<p>
			
		</p>
		
		<p>
			<h:commandButton type="submit" value="Save for Later" action="save"></h:commandButton>
			<h:commandButton type="submit" value="Submit to Approver" action="save"></h:commandButton>
		</p>
	</h:form>
 </ui:define>
 
    	</ui:composition>
 
    </h:body>
</html>